<!-- 顶部导航栏 -->
<div class="aw-top-menu-wrap">
	<div class="container">
		<!-- logo -->
		<div class="aw-logo hidden-xs">
			<a href="/"><img src="/static/img/logo.png" style="width: 80px;height: 40px;"></a>
		</div>
		<!-- end logo -->
		<!-- 导航 -->
		<div class="aw-top-nav navbar">
			<div class="navbar-header">
				<button class="navbar-toggle pull-left" style="padding: 0px;margin-bottom: 0px; margin-top: 4px;margin-left: 4px;">
					<img src="/static/img/logo.png" style="width: 80px;height: 40px;">
				</button>
			</div>
			<nav role="navigation" class="collapse navbar-collapse bs-navbar-collapse">
				<ul class="nav navbar-nav">
					<li>
						<a href="/">
							<i class="icon icon-list" class="active"></i>社区
						</a>
					</li>
					<li>
						<a href="/topic">
							<i class="icon icon-topic"></i>话题
						</a>
					</li>
					<li>
						<a href="/download">
							<i class="icon icon-download"></i>下载
						</a>
					</li>
					<li>
						<a href="/user">
							<i class="icon icon-user"></i>用户
						</a>
					</li>
				</ul>
			</nav>
		</div>
		<!-- end 导航 -->
		<!-- 搜索框 -->
		<div class="aw-search-box ">
			<!-- 搜索框 -->
			<form class="navbar-search" action="/search" method="get">
				<input class="form-control search-query" type="text" placeholder="搜索问题" autocomplete="off" name="q" required="required" id="aw-search-query" />
				<span title="搜索" id="global_search_btns">
					<i class="icon icon-search"></i>
				</span>
			</form>
		<!-- 搜索框 -->
		</div>
		<!-- end 搜索框 -->
		<!-- 用户栏 -->
		#if(loginAccount)
		<div class="aw-user-nav">
			<!-- 登陆&注册栏 -->
			<a href="/my" class="aw-user-nav-dropdown">
				<img alt="#(loginAccount.nickName)" src="/upload/avatar/#(loginAccount.avatar)">
			</a>
			<div class="aw-dropdown dropdown-list pull-right">
				<ul class="aw-dropdown-list">
					<li>
						<a href="/my/msg/list">
							<i class="icon icon-inbox"></i>消息中心
							<span class="badge badge-important hide" id="inbox_message" style="display: none;">0</span>
						</a>
					</li>
					<li>
						<a href="/my/article/list">
							<i class="icon icon-user"></i>个人中心
							<span class="badge badge-important hide" id="inbox_center" style="display: none;">0</span>
						</a>
					</li>
					<li>
						<a href="/my/setting">
							<i class="icon icon-setting"></i>个人设置
						</a>
					</li>
					<li>
						<a href="/logout/">
							<i class="icon icon-logout"></i>退出
						</a>
					</li>
				</ul>
			</div>
			<!-- end 登陆&注册栏 -->
		</div>
		<!-- 发起 -->
		<div class="aw-publish-btn hidden-xs">
			<a id="header_publish" class="btn-primary" href="/my/article">
				<i class="icon icon-ask"></i>发起
			</a>
		</div>
		#else
		<div class="aw-user-nav">
			<!-- 登陆&注册栏 -->
			<a class="login btn btn-small btn-primary" href="/login/">登录</a>
			<!-- end 登陆&注册栏 -->
		</div>
		#end
		<!-- end 用户栏 -->
		<!-- 发起 -->
		<!-- end 发起 -->
	</div>
</div>
<!-- 顶部导航栏end -->

